﻿<%@ Page Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="MyBusiness.aspx.cs"
    Inherits="SLIITPro.SysUsers.MyBusiness" Theme="CssTheme" Title="My Business" %>

<asp:Content ID="ContentWish" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">
    <div class="grid">
        <div class="rounded">
            <div class="top-outer">
                <div class="top-inner">
                    <div class="top">
                        <h2>
                            My Business List</h2>
                    </div>
                </div>
            </div>
            <div class="mid-outer">
                <div class="mid-inner">
                    <div class="mid">
                        <asp:UpdatePanel ID="upWishedBusiness" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:GridView AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="BId" ID="grdWishContent"
                                    OnRowDataBound="grdContent_RowDataBound" runat="server" CssClass="datatable"
                                    GridLines="None" EmptyDataText="No Data to Show">
                                    <Columns>
                                        <asp:BoundField DataField="BId" HeaderText="Id" InsertVisible="False" ReadOnly="True"
                                            Visible="false" SortExpression="BId" />
                                        <asp:TemplateField HeaderText="Business Name">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="btnName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "BName") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="BCity" HeaderText="City" />
                                        <asp:BoundField DataField="BStreet" HeaderText="Street" />
                                        <asp:BoundField DataField="BCountry" HeaderText="Country" />
                                        <asp:BoundField DataField="BEmail" HeaderText="Email" />
                                        <asp:BoundField DataField="BWeb" HeaderText="Web" />
                                        <asp:BoundField DataField="BType" HeaderText="Business Type" />
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:LinkButton ID="btnRemove" runat="server" ForeColor="Red" Text="Remove" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "BId") %>'
                                                    OnClick="btnRemove_Click" OnClientClick="return confirm('Are you sure want to remove this record from your wishlist?');" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerStyle CssClass="pager-row" />
                                    <RowStyle CssClass="row" />
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
            <div class="bottom-outer">
                <div class="bottom-inner">
                    <div class="bottom">
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
